<extend name="Public:base" />
<block name="title"><title>联系我们</title></block>
<block name="main">
    <div class="page-contact">
        <h2 class="contact-title">
            CONTACT US
        </h2>
        <h3 class="contact-sub">联系我们</h3>
        <div class="contact-hellp-text text-center">
            如果您有任何疑问，或者合作意向都可以通过以下任何一种方式与我们联系，我们将会在第一时间回复您的问题。
        </div>
        <div class="contact-content">

            <ul class="contact-ways">
                <li>
                    <i class="icon icon-qq"></i>
                    <strong>产品QQ群</strong>
                    255835672
                </li>
                <li>
                    <i class="icon icon-phone"></i>
                    <strong>服务热线</strong>
                    13902232521
                </li>
                <li>
                    <i class="icon icon-mail"></i>
                    <strong>联系邮箱</strong>
                    <a href="mailto:surport@boroshare.com">surport@boroshare.com</a>
                </li>
                <li>
                    <i class="icon icon-sina"></i>
                    <strong>关注新浪微博</strong>
                    <a href="http://weibo.com/u/5341115354">般若虾</a>
                </li>
                <li style="padding-left:0px;">
                    <img src="__PUBLIC__/themes/images/global/weixin.jpg" style="width: 80px;margin-right:10px;" class="pull-left" />
                    <strong>微信公众号</strong>
                    般若虾<br />
                </li>
            </ul>

            <div class="contact-form">
                <div class="help-text">
                    或者您还可以直接发送问题给我们(*为必填项)
                </div>
                <form id="feedbackform" action="" method="post">
                    <span data-valmsg-for="msg" data-valmsg-replace="true"></span><br />
                    *<textarea name="msg" placeholder="请写下您想对我们说的话" data-val="true" data-val-required="请填写您想反馈的问题"></textarea>
                    <label>怎么称呼您：<input type="text" id="sender" name="sender" maxlength="30" /></label>
                    <label>您的电话：<input type="text" id="phone" name="phone" maxlength="11" /></label>
                    <label>您的邮箱：<input type="text" name="email" maxlength="30" /></label>
                    <br />
                    <button type="submit" class="saveinfobtn">确定发送</button>
                </form>
            </div>
        </div>
    </div>
</block>
<block name="footer_scripts">
    <script type="text/javascript">
        require(["jquery","modules/message"], function ($,messagebox) {
            $("#feedbackform").on("submit", function () {
                var url = "{:U('Index/feedback_ajax')}";
                $.post(url, $('#feedbackform').serialize(), function (data) {
                    var vdata = eval(data);
                    messagebox.alert({ content: vdata.msg });
                }, 'json');
                return false;
            });
        });
    </script>
</block>